﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="webapi_debug.aspx.cs" Inherits="EDP.Application.Web.WebApi.webapi_debug" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <style type="text/css">
        .paramLink {
            float: right;
            cursor: pointer;
        }
    </style>
    <script type="text/javascript">
        function showPamam(url, name, width, height) {
            F('win_param').f_show(url, "【" + name + '】参数描述', width, height);
        }
    </script>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager" AutoSizePanelID="panel" runat="server" />
        <f:HiddenField ID="hide_ClassifyId" runat="server" />
        <f:Panel ID="panel" runat="server" ShowBorder="false" Margin="10 10 10 10" Layout="HBox">
            <Items>
                <f:SimpleForm ID="from" runat="server" Title="接口信息" MaxWidth="360" BoxFlex="1" BodyPadding="10" Margin="0" LabelWidth="75" Layout="Column">
                    <Items>
                        <f:TextBox ID="tb_name" runat="server" Label="接口名称" BindName="Name" Margin="0" ColumnWidth="100%" Readonly="true"  />
                        <f:TextBox ID="TextBox1" runat="server" Label="接口编号" BindName="Numbers" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:DropDownList ID="ddl_classifyList" runat="server" Label="所属分类" BindName="ClassifyId" EnableSimulateTree="true" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:DropDownList ID="ddl_version" runat="server" Label="版本" BindName="ClassName" Margin="10 0 0 0" ColumnWidth="100%" ShowRedStar="true" OnSelectedIndexChanged="ddl_version_SelectedIndexChanged" AutoPostBack="true" />
                        <f:TextBox ID="tb1" runat="server" Label="程序集" BindName="AssemblyName" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="tb2" runat="server" Label="接口类" BindName="ClassName" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="tb3" runat="server" Label="接口方法" BindName="MethodName" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:CheckBox ID="CheckBox1" runat="server" Label="登录访问" BindName="IsLoginAccess" Margin="10 0 0 0" ColumnWidth="50%" Checked="true" Readonly="true" />
                        <f:CheckBox ID="CheckBox2" runat="server" Label="授权访问" BindName="IsAuthenticationAccess" Margin="10 0 0 10" ColumnWidth="50%" Checked="true" Readonly="true" />
                        <f:NumberBox ID="tb_sort" runat="server" Label="排序号" BindName="SortNumber" Margin="10 0 0 0" ColumnWidth="100%" MaxLength="4" Text="0" Readonly="true" />
                        <f:TextBox ID="tb_createUser" runat="server" Label="创建人" BindName="CreateUserName" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="tb_craeteTime" runat="server" Label="创建时间" BindName="CreateTimeDisplay" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="tb_modifyUser" runat="server" Label="修改人" BindName="ModifyUserName" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="tb_modifyTime" runat="server" Label="修改时间" BindName="ModifyTimeDisplay" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextArea ID="tb_remark" runat="server" Label="描述" BindName="Remarks" Margin="10 0 0 0" ColumnWidth="100%" Height="180" Readonly="true" />
                    </Items>
                </f:SimpleForm>
                <f:Panel ID="param" runat="server" Title="接口请求" MinWidth="300" BoxFlex="1" BodyPadding="10" Margin="0 0 0 5" Layout="Region">
                    <Items>
                        <f:SimpleForm ID="SimpleForm1" runat="server" ShowBorder="false" ShowHeader="false" BodyPadding="0" Margin="0 0 10 0" Layout="HBox" RegionPosition="Top">
                            <Items>
                                <f:DropDownList ID="ddl_apiList" runat="server" Label="接口地址" LabelWidth="60" BoxFlex="1" />
                                <f:Button ID="btn_apiconfig" runat="server" Text="接口配置" Width="70" Margin="0 0 0 10" Size="Small" />
                            </Items>
                        </f:SimpleForm>
                        <f:GroupPanel ID="group1" runat="server" Title="请求Heards" RegionPosition="Top">
                            <Items>
                                <f:TextBox ID="tb_Token" runat="server" Label="Token" LabelWidth="90" />
                                <f:TextBox ID="tb_ClientIdentify" runat="server" Margin="10 0 0 0" Label="客户端标识(ClientIdentify)" LabelWidth="90" />
                                <f:TextBox ID="tb_ApiNumbers" runat="server" Margin="10 0 0 0" Label="接口编号(ApiNumbers)" LabelWidth="90" Readonly="true" />
                                <f:TextBox ID="tb_ApiVersion" runat="server" Margin="10 0 0 0" Label="接口版本(ApiVersion)" LabelWidth="90" Readonly="true" />
                                <f:TextBox ID="tb_RequestId" runat="server" Margin="10 0 5 0" Label="请求标识ID (RequestId)" LabelWidth="90" EmptyText="表示请求唯一性的字符串,防止重复提交,为空则不校验重复提交" />
                            </Items>
                        </f:GroupPanel>
                        <f:GroupPanel ID="group_param" runat="server" Title="接口参数" BodyPadding="5" Margin="0 0 10 0" RegionPosition="Center" Layout="Column" AutoScroll="true" />
                        <f:SimpleForm runat="server" ShowBorder="false" ShowHeader="false" Margin="0" BodyPadding="0" RegionPosition="Bottom" Layout="Column">
                            <Items>
                                <f:Button ID="btn_request" runat="server" Margin="0 5 0 0" Text="发送接口请求" OnClick="btn_request_Click" ColumnWidth="42%"/>
                                <f:Button ID="btn_result_param" runat="server" Margin="0 0 0 5" Text="返回结果描述" EnablePostBack="false" ColumnWidth="42%"/>
                                <f:Button ID="btn_close" runat="server" Text=" 关 闭 " Margin="0 0 0 5" EnablePostBack="false"  ColumnWidth="16%" EnablePermission="false" />
                            </Items>
                        </f:SimpleForm>
                        
                    </Items>
                </f:Panel>
                <f:SimpleForm ID="SimpleForm2" runat="server" Title="接口请求结果" MinWidth="300" BoxFlex="1" BodyPadding="10" Margin="0 0 0 5" Layout="Region">
                    <Items>
                        <f:TextArea ID="tb_result" runat="server" RegionPosition="Center" Readonly="true"/>
                    </Items>
                </f:SimpleForm>
            </Items>
        </f:Panel>
        <f:Window ID="win_config" CloseAction="HidePostBack" runat="server" OnClose="win_config_Close" />
        <f:Window ID="win_param" runat="server" Target="Parent" />
    </form>
</body>
</html>
